package com.base.video;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.base.video.databinding.ActivityTestvideoBinding;
import com.base.video.ui.ControlPanel;

/**
 * Created by weikailiang on 2020/2/21.
 */
@Route(path = "/video/testvideo")
public class TestVideoActivity extends CBaseVideoBarActivity{
    private ActivityTestvideoBinding mBinidng;
    @Override
    protected int getLayoutResource() {
        return R.layout.activity_testvideo;
    }

    @Override
    protected void init() {
        super.init();
        mBinidng = (ActivityTestvideoBinding) mRootBinding;
        setBackNavigation();
        setBarTitle("视频测试");

        ControlPanel controlPanel = new ControlPanel(this);
        controlPanel.setUpSeeEnablekProgress(false);
        mBinidng.video.setControlPanel(controlPanel);
        //required: set url
        mBinidng.video.setUp("http://vfx.mtime.cn/Video/2018/06/01/mp4/180601113115887894.mp4");
        mBinidng.video.start();

    }

    @Override
    protected void start() {

    }
}
